<html>
<title></title>
<head>
<style type = "text/css">
{literal}
body, td{
	font-size:12px;
	font-family:Tahoma;
}
html{
	font-family:Tahoma;
}
td.bg_gray, tr.bg_gray td {
	background-color: #CCCCCC;
}
table {
    border-collapse:collapse;
    border:0;
}
td{
	padding-left:3px;
	padding-right: 3px;
	padding-top:0px;
	padding-bottom:0px;
}
tr.bold td{
	font-weight:bold;
}
td.price{
	padding-left: 10px;
}

p.unocart_cart_attribute{
	font-weight:bold;
	font-style:italic;
	font-size:11px;
	padding:0;
	margin:0;
	padding-left:10px;
}

tr.vertical td{
	vertical-align:top;
	padding-bottom:10px;
}
{/literal}
</style>
</head>
<body>


<table width="794px" align="center" border="0" cellspacing="0" cellpadding="10">
  <tr>
     <td colspan = "2">
        <img src = "components/com_unocart/images/header.jpg" />
     </td>
  </tr>
  <tr valign="top">
     <td colspan = "2">
       {$info_shop}
     </td>
  </tr>
  <tr class = "bg_gray">
     <td colspan = "2">
        <h3>{$smarty.const._UNOCART_EMAIL_PURCHASE_ORDER}</h3>
     </td>
  </tr>
  <tr>
     <td>
        {$smarty.const._UNOCART_ORDER_NUMBER}:
     </td>
     <td>
        {$order->order_number}
     </td>
  </tr>
  <tr>
     <td>
        {$smarty.const._UNOCART_ORDER_DATE}:
     </td>
     <td>
        {$order->order_date}
     </td>
  </tr>
  <tr>
     <td>
        {$smarty.const._UNOCART_ORDER_STATUS}:
     </td>
     <td>
        {$order->status}
     </td>
  </tr>
  <tr class="bg_gray">
    <td colspan="2" width = "50%">
	   <h3>{$smarty.const._UNOCART_CUSTOMER_INFORMATION}</h3>
	</td>
  </tr>
  <tr>
    <td>
	  <table>
        <tr>
          <td colspan=2><b>{$smarty.const._UNOCART_EMAIL_BILL_TO}</b></td>
        </tr>
        <tr>
          <td width = "50%">{$smarty.const._UNOCART_FIRMA_NAME}:</td>
          <td width = "50%">{$order->firma_name}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_FULL_NAME} :</td>
          <td>{$order->f_name} {$order->l_name}</td>
        </tr>
        <tr valign=top>
          <td>{$smarty.const._UNOCART_STREET_NR}:</td>
          <td>{$order->street}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_CITY} :</td>
          <td>{$order->city}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_STATE} :</td>
          <td>{$order->state}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_ZIP} :</td>
          <td>{$order->zip}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_COUNTRY} :</td>
          <td>{$order->country}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_TELEFON} :</td>
          <td>{$order->phone}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_FAX} :</td>
          <td>{$order->fax}</td>
        </tr>
        <tr>
          <td>{$smarty.const._UNOCART_EMAIL}:</td>
          <td>{$order->email}</td>
        </tr>
      </table>
	</td>
	<td style="vertical-align:top" width = "50%">
	 <table width="100%">
      <tr>
        <td colspan=2><b>{$smarty.const._UNOCART_EMAIL_SHIP_TO}</b></td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_FIRMA_NAME}:</td>
        <td>{$order->d_firma_name}</td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_FULL_NAME} </td>
        <td>{$order->d_f_name} {$order->d_l_name}</td>
      </tr>
      <tr valign=top>
        <td>{$smarty.const._UNOCART_STREET_NR}:</td>
        <td>{$order->d_street}<br></td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_CITY} :</td>
        <td>{$order->d_city}</td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_STATE} :</td>
        <td>{$order->d_state}</td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_ZIP} :</td>
        <td>{$order->d_zip}</td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_COUNTRY} :</td>
        <td>{$order->country}</td>
      </tr>
      <tr>
        <td>{$smarty.const._UNOCART_TELEFON} :</td>
        <td>{$order->d_phone}</td>
      </tr>
     </table>
	</td>
  </tr>
  <tr>
    <td colspan = "2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan = "2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan = "2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan = "2" class="bg_gray">
	  <h3>
	    {$smarty.const._UNOCART_ORDER_ITEMS}	  </h3>
	</td>
  </tr>
  <tr>
    <td colspan="2">
	   <table width="100%">
	     <tr class = "bold">
           <td width="45%">{$smarty.const._UNOCART_NAME_PRODUCT}</td>
           <td width="15%">{$smarty.const._UNOCART_SKU}</td>
           <td width="10%">{$smarty.const._UNOCART_QUANTITY}</td>
           <td width="15%">{$smarty.const._UNOCART_PRICE}</td>
           <td width="15%">{$smarty.const._UNOCART_TOTAL}</td>
		 </tr>
		 {foreach from=$order->products item=prod}
		 <tr class = "vertical">
		   <td>
		     {$prod.product_name}
   	         {foreach from=$prod.attributes_value item=attr}
	           <p class = "unocart_cart_attribute">{$attr->attr} : {$attr->value}</p>
	         {/foreach}
		   </td>
		   <td>{$prod.product_sku}</td>
		   <td>{$prod.quantity}</td>
		   <td>{format_price price = $prod.price}</td>
		   <td>{format_price price = $prod.price*$prod.quantity}</td>
		 </tr>
		 {/foreach}
		 <tr>
		   <td colspan="5">&nbsp;</td>
	     </tr>
		 <tr>
           <td colspan=4 align=right>{$smarty.const._UNOCART_SUBTOTAL}:</td>
		   <td class = "price">{format_price price=$order->order_subtotal}</td>
	     </tr>
		 <tr>
           <td colspan=4 align=right>{$smarty.const._UNOCART_SHIPPING_PRICE}:</td>
		   <td class = "price">{format_price price=$order->order_shipping}</td>
	     </tr>
         {if $order->order_discount}
		 <tr>
		   <td align="right" colspan="4">{$smarty.const._UNOCART_COUPON_DISCOUNT}: </td>
		   <td class = "price">-{format_price price=$order->order_discount}</td>
	     </tr>
         {/if}
	     <tr>
           <td colspan=4 align=right><b>{$smarty.const._UNOCART_TOTAL}:</b></td>
		     <td class = "price">{format_price price=$order->order_subtotal+$order->order_shipping-$order->order_discount}</td>
	     </tr>
		 <tr>
		   <td colspan="5">&nbsp;</td>
		 </tr>
		 <tr>
		   <td colspan="5" class="bg_gray">{$smarty.const._UNOCART_CUSTOMER_NOTE}</td>
		 </tr>
		 <tr>
		   <td colspan="5">{$order->order_add_info}</td>
		 </tr>
	   </table>
	</td>
  </tr>
  <tr class = "bg_gray">
   <td><b>{$smarty.const._UNOCART_PAYMENT_INFORMATION}</b></td>
   <td><b>{$smarty.const._UNOCART_SHIPPING_INFORMATION}</b></td>
  </tr>
  <tr style = "vertical-align:top">
   <td>{$order->payment_information|nl2br}</td>
   <td>{$order->shipping_information|nl2br}</td>
  </tr>
  <tr>
     <td colspan = "2">
        <img src = "components/com_unocart/images/footer.jpg" />
     </td>
  </tr>
</table>
</body>
</html>